import { Rule } from '@midwayjs/validate';
import { BaseDTO } from '../../../common/base.dto';
import { BaseSysMenu } from '../entity/menu';
import { R } from '../../../common/base.error.util';
import { requiredString } from '../../../common/common.validate.rules';

export class MenuDTO extends BaseDTO<BaseSysMenu> {
  @Rule(requiredString.error(R.validateError('名称不能为空')))
  name: string;
}
